package com.ysynzehao.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * niuzehao
 * 2018/12/5 10:30.
 */
@Data
@Configuration
@PropertySource("classpath:config.properties")
@ConfigurationProperties(prefix = "ysynzehao.admin")
public class Admin {

    private String name;

    private String password;

}
